package org.macpro.alone.server.contain;

import java.util.List;
import java.util.Vector;

import org.macpro.alone.prisist.dao.OrganizationActionDaoInter;
import org.macpro.alone.prisist.domain.AloneOrganizationAction;

public class OrganizationActionManagerImpl implements OrganizationActionManagerInter{
	private OrganizationActionDaoInter  organizationactionDao;
	private static final List<AloneOrganizationAction> OrganizationActionList=new Vector<AloneOrganizationAction>();
	public String getConfigValue(String key) {
		// TODO Auto-generated method stub
		return null;
	}

	public boolean initConfig() {
		// TODO Auto-generated method stub
		return false;
	}

	public boolean refreshConfigMap() {
		// TODO Auto-generated method stub
		return false;
	}

	/* (non-Javadoc)
	 * @see org.macpro.alone.server.contain.dd$deleteEntity(java.lang.String)
	 */
	public void deleteEntity(String entity) {
		// TODO Auto-generated method stubFd
		organizationactionDao.deleteEntity(organizationactionDao.getEntity(entity));
	}

	/* (non-Javadoc)
	 * @see org.macpro.alone.server.contain.dd$editEntity(org.macpro.alone.prisist.domain.AloneOrganizationAction)
	 */
	public void editEntity(AloneOrganizationAction entity) {
		// TODO Auto-generated method stub
		organizationactionDao.editEntity(entity);
	}

	public List<AloneOrganizationAction> getAllEntity() {
		// TODO Auto-generated method stub
		return null;
	}

	public int getAllListNum() {
		// TODO Auto-generated method stub
		return 0;
	}

	/* (non-Javadoc)
	 * @see org.macpro.alone.server.contain.dd$getEntity(java.lang.String)
	 */
	public AloneOrganizationAction getEntity(String id) {
		// TODO Auto-generated method stub
		return organizationactionDao.getEntity(id);
	}

	/* (non-Javadoc)
	 * @see org.macpro.alone.server.contain.dd$insertEntity(org.macpro.alone.prisist.domain.AloneOrganizationAction)
	 */
	public void insertEntity(AloneOrganizationAction entity) {
		// TODO Auto-generated method stub
		organizationactionDao.insertEntity(entity);
	}

	

	public static List<AloneOrganizationAction> getorganizationactionList() {
		return OrganizationActionList;
	}

	public OrganizationActionDaoInter getorganizationactionDao() {
		return organizationactionDao;
	}

	public void setorganizationactionDao(OrganizationActionDaoInter organizationactionDao) {
		this.organizationactionDao = organizationactionDao;
	}

}
